package com.wr.service.plate;

import com.wr.dao.PlateDao;
import com.wr.model.Plate;
import com.wr.model.RestResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author weirong
 * @Title:
 * @Description:
 * @date 2018/6/1118:20
 */
@Service
public class PlateServiceImpl implements PlateService {

    @Autowired
    private PlateDao plateDao;

    public List<Plate> list(Plate plate) {
        RestResponse<List<Plate>> rests = plateDao.list(plate);
        return rests.getResult();
    }
}
